<template>
  <div class="home">
    <demo-item-two
      v-for="(num, index) in list"
      :key="index"
      :num="num"
    ></demo-item-two>
    <button @click="btnClcik">反转</button>
  </div>
</template>

<script>
import demoItemTwo from "@/components/demoItemTwo.vue";

export default {
  name: "DemoTwo",
  components: {
    demoItemTwo,
  },
  data() {
    return {
      list: [1, 2, 3],
    };
  },
  methods: {
    btnClcik() {
      this.list.reverse();
    },
  },
};
</script>
